<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>插件图标和状态指示 - 原型图</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0;
            padding: 40px;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        h1 {
            color: #333;
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.5em;
            font-weight: 300;
        }

        .icon-section {
            margin-bottom: 60px;
        }

        .icon-title {
            font-size: 1.5em;
            color: #555;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .icon-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .icon-item {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .icon-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 15px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            font-weight: bold;
        }

        .icon-idle {
            background: linear-gradient(135deg, #4CAF50, #45a049);
        }

        .icon-downloading {
            background: linear-gradient(135deg, #2196F3, #1976D2);
            animation: pulse 2s infinite;
        }

        .icon-error {
            background: linear-gradient(135deg, #f44336, #d32f2f);
        }

        .icon-success {
            background: linear-gradient(135deg, #4CAF50, #388E3C);
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
            }
        }

        .icon-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .icon-description {
            color: #666;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .browser-mockup {
            background: #2c3e50;
            border-radius: 10px;
            padding: 20px;
            margin-top: 40px;
        }

        .browser-toolbar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .browser-button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #e74c3c;
        }

        .browser-button:nth-child(2) {
            background: #f39c12;
        }

        .browser-button:nth-child(3) {
            background: #27ae60;
        }

        .toolbar-icons {
            display: flex;
            gap: 15px;
            margin-left: auto;
        }

        .toolbar-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .toolbar-icon:hover {
            transform: scale(1.1);
        }

        .status-indicator {
            position: relative;
        }

        .status-dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #4CAF50;
            border: 2px solid #2c3e50;
        }

        .status-dot.downloading {
            background: #2196F3;
            animation: blink 1s infinite;
        }

        .status-dot.error {
            background: #f44336;
        }

        @keyframes blink {

            0%,
            50% {
                opacity: 1;
            }

            51%,
            100% {
                opacity: 0.3;
            }
        }

        .specifications {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            margin-top: 40px;
        }

        .spec-title {
            font-size: 1.3em;
            color: #333;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .spec-list {
            list-style: none;
            padding: 0;
        }

        .spec-list li {
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
            color: #555;
        }

        .spec-list li:last-child {
            border-bottom: none;
        }

        .spec-list li::before {
            content: "✓";
            color: #4CAF50;
            font-weight: bold;
            margin-right: 10px;
        }
    </style>
</head>

<body>
    <div class="container">
        <h1>插件图标和状态指示 - 原型图</h1>

        <div class="icon-section">
            <div class="icon-title">插件图标状态展示</div>
            <div class="icon-grid">
                <div class="icon-item">
                    <div class="icon icon-idle">📥</div>
                    <div class="icon-label">空闲状态</div>
                    <div class="icon-description">插件处于待机状态，可以开始扫描页面</div>
                </div>

                <div class="icon-item">
                    <div class="icon icon-downloading">⏬</div>
                    <div class="icon-label">下载中状态</div>
                    <div class="icon-description">正在下载文件，图标会有脉冲动画效果</div>
                </div>

                <div class="icon-item">
                    <div class="icon icon-error">⚠️</div>
                    <div class="icon-label">错误状态</div>
                    <div class="icon-description">下载过程中出现错误，需要用户处理</div>
                </div>

                <div class="icon-item">
                    <div class="icon icon-success">✅</div>
                    <div class="icon-label">完成状态</div>
                    <div class="icon-description">下载任务完成，显示成功状态</div>
                </div>
            </div>
        </div>

        <div class="browser-mockup">
            <div class="icon-title" style="color: white; margin-bottom: 20px;">浏览器工具栏集成</div>
            <div class="browser-toolbar">
                <div class="browser-button"></div>
                <div class="browser-button"></div>
                <div class="browser-button"></div>

                <div class="toolbar-icons">
                    <div class="toolbar-icon icon-idle status-indicator">
                        📥
                        <div class="status-dot"></div>
                    </div>
                    <div class="toolbar-icon icon-downloading status-indicator">
                        ⏬
                        <div class="status-dot downloading"></div>
                    </div>
                    <div class="toolbar-icon icon-error status-indicator">
                        ⚠️
                        <div class="status-dot error"></div>
                    </div>
                </div>
            </div>
        </div>

        <div class="specifications">
            <div class="spec-title">图标设计规格</div>
            <ul class="spec-list">
                <li>图标尺寸：16x16px (工具栏), 32x32px (弹出窗口), 48x48px (扩展管理页面)</li>
                <li>状态指示：通过颜色变化和动画效果显示当前状态</li>
                <li>交互反馈：鼠标悬停时显示工具提示，点击弹出主控制面板</li>
                <li>视觉一致性：使用统一的图标风格和颜色方案</li>
                <li>无障碍设计：支持高对比度模式和屏幕阅读器</li>
            </ul>
        </div>
    </div>
</body>

</html>